package com.east.controller.statistical;

import java.util.List;
import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.east.bean.Contract;
import com.east.bean.Fee;
import com.east.bean.OtherFee;
import com.east.service.sale.ContractService;
import com.east.service.statistical.ProjectCostService;
import com.east.utils.PageJson;
import com.east.utils.Pagenation;
import com.east.utils.Result;
import com.east.utils.ResultUtil;
import com.github.pagehelper.Page;
/**
 * 项目成本
 * @author Administrator
 *
 */
@RestController
@RequestMapping("operation")
public class OperationController {
	@Autowired
	ProjectCostService projectCostService;
	
	/**
	 * 全查
	 * 分页
	 * @param pagenation
	 * @param key
	 * @return
	 */
	@GetMapping("all")
	@RequiresPermissions("operation:all")
	public Result findByPage(Integer year) {
		 Map<String, Object> findOperation = projectCostService.findOperation(year);
		return ResultUtil.success(findOperation);
	}
	
	
	
}
